#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

void Test1() {
    Solution sol;
    string s = "()";
    bool res = sol.isValid(s);
    if (res) {
        cout << "通过用例1，测试\"()\"通过 ... OK!" << endl;
    } else {
        cout << "未通过用例1，测试值为\"()\"，实际输出为false" << endl;
    }
}

void Test2() {
    Solution sol;
    string s = "()[]{}";
    bool res = sol.isValid(s);
    if (res) {
        cout << "通过用例2，测试\"()[]{}\"通过 ... OK!" << endl;
    } else {
        cout << "未通过用例2，测试值为\"()[]{}\"，实际输出为false" << endl;
    }
}

void Test3() {
    Solution sol;
    string s = "(]";
    bool res = sol.isValid(s);
    if (!res) {
        cout << "通过用例3，测试\"(]\"通过 ... OK!" << endl;
    } else {
        cout << "未通过用例3，测试值为\"(]\"，实际输出为true" << endl;
    }
}

void Test4() {
    Solution sol;
    string s = "([)]";
    bool res = sol.isValid(s);
    if (!res) {
        cout << "通过用例4，测试\"([)]\"通过 ... OK!" << endl;
    } else {
        cout << "未通过用例4，测试值为\"([)]\"，实际输出为true" << endl;
    }
}

void Test5() {
    Solution sol;
    string s = "{[]}";
    bool res = sol.isValid(s);
    if (res) {
        cout << "通过用例5，测试\"{[]}\"通过 ... OK!" << endl;
    } else {
        cout << "未通过用例5，测试值为\"{[]}\"，实际输出为false" << endl;
    }
}

void Test6() {
    Solution sol;
    string s = "((()))";
    bool res = sol.isValid(s);
    if (res) {
        cout << "通过用例6，测试\"((()))\"通过 ... OK!" << endl;
    } else {
        cout << "未通过用例6，测试值为\"((()))\"，实际输出为false" << endl;
    }
}

void Test7() {
    Solution sol;
    string s = "({[)";
    bool res = sol.isValid(s);
    if (!res) {
        cout << "通过用例7，测试\"({[)\"通过 ... OK!" << endl;
    } else {
        cout << "未通过用例7，测试值为\"({[)\"，实际输出为true" << endl;
    }
}

int main() {
    Test1();
    Test2();
    Test3();
    Test4();
    Test5();
    Test6();
    Test7();
    return 0;
}